<template>
  <div class="list">
    <div class="shop" v-for="(item, index) in shopArr" :key="index">
      <div class="tp">
        <img :src="item.pic" alt="" />
      </div>
      <div class="name">
        <p>{{ item.name }}</p>
      </div>
      <div class="spjs">
        <span>{{ item.spjs }}</span>
      </div>
      <div class="price">
        <div>
          <span>￥{{ item.price }}</span>
        </div>
        <div class="msq">马上抢</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      shopArr: [
        {
          pic: "http://p0.meituan.net/deal/ce27d7b711b5991fdfd78b820e35b557288464.png",
          name: "汉堡王",
          spjs: "买1送1明星皇堡|用心火烧肉质紧实 鲜嫩多汁 爆爆团",
          price: 25,
          state: false,
        },
        {
          pic: "http://p0.meituan.net/deal/ce27d7b711b5991fdfd78b820e35b557288464.png",
          name: "华莱士",
          spjs: "华莱士│聚划算单人套餐│进店必选",
          price: 12.12,
          state: false,
        },
        {
          pic: "http://p0.meituan.net/deal/ce27d7b711b5991fdfd78b820e35b557288464.png",
          name: "陕西特产",
          spjs: "白老大小米果仁酥220g【爆爆团】",
          price: 25,
          state: false,
        },
      ],
    };
  },
};
</script>

<style lang="scss">
.list {
  padding: 10px;
  background: #f5f5f5;
}
.list .shop {
  background: white;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  border-radius: 5px;
}
.list .shop .tp {
  float: left;
}
.list .shop .tp img {
  width: 100px;
  height: 100px;
  margin-right: 10px;
}
.list .shop .name p {
  font-weight: bolder;
}

.list .shop .spjs {
  font-size: 14px;
}
.list .shop .price {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  color: red;
}
.list .shop .price .msq {
  padding: 8px;
  background: red;
  color: white;
  border-radius: 20px;
  font-size: 14px;
}
</style>